import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import VueUeditorWrap from 'vue-ueditor-wrap'
import './assets/css/common.css'
import './plugins/element.js'
// 将网络请求挂载到全局
import api from "./api";
Vue.prototype.$api = api;

Vue.component('vue-ueditor-wrap', VueUeditorWrap);

if (localStorage.getItem('tokin')){
  store.commit('egoVuex/setTokin',localStorage.getItem('tokin'));
}

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
